package com.hutao.medical.common.util;

import java.math.BigDecimal;
import java.text.ParseException;
import java.util.Date;
import java.util.List;

/**
 * 
 * @author lyh
 *
 */
public class ObjectUtils {

	/**
	 * 获取字符串对象
	 * @param obj
	 * @return
	 */
	@SuppressWarnings({ "unchecked", "rawtypes" })
	public static String getStringValue(Object obj){
		if(obj instanceof String){
			return (String)obj;
		}else if(obj instanceof Date){
			return DateUtil.dateFormat((Date)obj);
		}else if(obj instanceof Integer){
			return ""+(Integer)obj;
		}else{
			return null;
		}
	}
	
}
